<script setup lang="ts">
import AddModal from "./views/addModal.vue";
import useVisible from "./hooks/visible";

const add = useVisible();
</script>

<template>
  <a-button @click="add.trigger" type="primary">open</a-button>
  <AddModal v-model:open="add.visible.value"></AddModal>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
